/**
 * <p>
 *
 * @Author：Roy
 * @Description：预警管理
 * @Date：Create by 2023-12-15 11:20:26
 */
 import request from '@/utils/request'

 const carbonEmissionManage = {
   // 分页查询预警管理
   queryList(data) {
     return request({
       url: '/energy-carbon/ecp-admin/warningManage/queryPage',
       method: 'post',
       data
     })
   },
   // 详情列表
   detailList(data) {
     return request({
       url: '/energy-carbon/ecp-admin/warningManage/detail',
       method: 'post',
       data
     })
   },
   // 新增预警管理
   add(data) {
     return request({
       url: '/energy-carbon/ecp-admin/warningManage/add',
       method: 'post',
       data
     })
   },
   // 编辑预警管理
   update(data) {
     return request({
       url: '/energy-carbon/ecp-admin/warningManage/update',
       method: 'post',
       data
     })
   },
   // 删除预警管理
   deleteById(data) {
     return request({
       url: '/energy-carbon/ecp-admin/warningManage/deleteById',
       method: 'post',
       data
     })
   },
   // 启用禁用
   enableOrDisable(data) {
     return request({
       url: '/energy-carbon/ecp-admin/warningManage/enableOrDisable',
       method: 'post',
       data
     })
   },
   // 批量删除预警管理
   batchDelete(data) {
     return request({
       url: '/energy-carbon/ecp-admin/warningManage/batchDelete',
       method: 'post',
       data
     })
   }
 }

 export default carbonEmissionManage
